<template>
  <div style="margin-left: 3%;padding-top:0.5%">
    <el-button  :disabled="disabled" type="primary" @click="handleAdd" size="small">填写分析报告</el-button>
    <div style="font-size: 20px;font-weight:bold;margin-top: 20px;">报告还未填写，暂无内容显示！</div>
    <!--  分析报告的弹窗显示  -->
    <el-dialog :visible.sync="innerVisible" width="100%" :fullscreen="true">
      <!--页面提示-->
      <div style="font-size: 30px;margin-bottom: 10px;font-weight: bold;border-top: 1px solid rgba(165,169,175,0.29);">
        填写/编辑分析报告
      </div>
      <el-form ref="analysisform" :model="analysisform" label-width="150px" :rules="rules">
        <el-collapse v-model="activeNames">
          <el-collapse-item name="1">
            <template #title>
              <div class="shaodiedaobname">协助部门意见</div>
            </template>
            <!--         协助部门意见-->
            <div style="margin-top: 20px">
              <el-form-item label="协助部门一" class="tDepartmentComment">
                <el-select filterable v-model="analysisform.note2" placeholder="请选择">
                  <el-option
                    v-for="dict in dict.type.he_department_name"
                    :key="dict.value"
                    :label="dict.label"
                    :value="dict.value">
                  </el-option>
                </el-select>
              </el-form-item>
              <el-form-item label="协助部门二">
                <el-select filterable v-model="analysisform.note3" placeholder="请选择">
                  <el-option
                    v-for="dict in dict.type.he_department_name"
                    :key="dict.value"
                    :label="dict.label"
                    :value="dict.value">
                  </el-option>
                </el-select>
              </el-form-item>
            </div>
          </el-collapse-item>
          <el-collapse-item name="2">
            <template #title>
              <div class="shaodiedaobname">科室讨论情况</div>
            </template>
            <div style="margin-top: 20px">
              <el-form-item label="科室讨论日期" prop="discussionDepartmentDate">
                <div class="block">
                  <el-date-picker
                    v-model="analysisform.discussionDepartmentDate"
                    type="date"
                    placeholder="选择日期">
                  </el-date-picker>
                </div>
              </el-form-item>
              <el-form-item label="地点" prop="discussionSite">
                <el-input v-model="analysisform.discussionSite"></el-input>
              </el-form-item>
              <el-form-item label="参加讨论人员" :rules="[{required: true, message: '此项为必填项，请你录入'}]">
                <el-input v-model="analysisform.discussionPanelist" type="textarea" :rows="2" resize="none"></el-input>
              </el-form-item>
            </div>
          </el-collapse-item>
          <el-collapse-item name="3">
            <template #title>
              <div class="shaodiedaobname">科室讨论意见</div>
            </template>
            <div style="margin-top: 20px">
              <el-form-item label="事件是否累计患者">
                <el-radio-group v-model="analysisform.discussionInvolvesPatient">
                  <el-radio label="01">是</el-radio>
                  <el-radio label="02">否</el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="是否给患者造成伤害">
                <el-radio-group v-model="analysisform.discussionHurtPatient">
                  <el-radio label="01">是</el-radio>
                  <el-radio label="02">否</el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="患者是否知晓">
                <el-radio-group v-model="analysisform.discussionPatientKnows">
                  <el-radio label="01">是</el-radio>
                  <el-radio label="02">否</el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="家属是否知晓">
                <el-radio-group v-model="analysisform.discussionFamilyKnows">
                  <el-radio label="01">是</el-radio>
                  <el-radio label="02">否</el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="是否存在纠纷隐患">
                <el-radio-group v-model="analysisform.discussionPotentialDispute">
                  <el-radio label="01">是</el-radio>
                  <el-radio label="02">否</el-radio>
                </el-radio-group>
              </el-form-item>
              <el-form-item label="科室讨论定性等级">
                <el-radio-group v-model="analysisform.discussionQualitativeLevels">
                  <el-radio label="01">医疗事故</el-radio>
                  <el-radio label="02">差错</el-radio>
                  <el-radio label="03">医疗缺陷</el-radio>
                  <el-radio label="04">意外事件</el-radio>
                  <el-radio label="05">其他</el-radio>
                </el-radio-group>
              </el-form-item>
              <div v-show="analysisform.discussionQualitativeLevels == '01'">
                <el-form-item label="医疗事故">
                  <el-radio-group v-model="analysisform.discussionMedicalMalpractice">
                    <el-radio label="01">一级医疗事故</el-radio>
                    <el-radio label="02">二级医疗事故</el-radio>
                    <el-radio label="03">三级医疗事故</el-radio>
                    <el-radio label="04">四级医疗事故</el-radio>
                  </el-radio-group>
                </el-form-item>
              </div>
              <div v-show="analysisform.discussionQualitativeLevels == '02'">
                <el-form-item label="差错">
                  <el-radio-group v-model="analysisform.discussionMedicalMalpractice">
                    <el-radio label="01">严重差错</el-radio>
                    <el-radio label="02">一般差错</el-radio>
                  </el-radio-group>
                </el-form-item>
              </div>
              <div v-show="analysisform.discussionQualitativeLevels == '03'">
                <el-form-item label="医疗缺陷">
                  <el-radio-group v-model="analysisform.discussionMedicalMalpractice">
                    <el-radio label="01">重度</el-radio>
                    <el-radio label="02">中度</el-radio>
                    <el-radio label="03">轻度</el-radio>
                  </el-radio-group>
                </el-form-item>
              </div>
              <el-form-item label="科室处理意见">
                <el-input v-model="analysisform.discussionHandSuggestion" type="textarea" :rows="2"
                          resize="none"></el-input>
              </el-form-item>
            </div>
          </el-collapse-item>
          <div
            style="font-size: 20px ;font-weight: bold;color: black">
            可能发生原因
          </div>
          <el-collapse-item name="4">
            <template #title>
              <div class="shaodiedaobname">人</div>
            </template>
            <el-form-item label="医护人员">
              <el-checkbox-group v-model="yihu" @change="yihu1(yihu)">
                <el-checkbox label="01">员工疏忽</el-checkbox>
                <el-checkbox label="02">风险意识不强</el-checkbox>
                <el-checkbox label="03">临床经验不足</el-checkbox>
                <el-checkbox label="04">临床培训不足</el-checkbox>
                <el-checkbox label="05">与患者/家属缺乏沟通</el-checkbox>
                <el-checkbox label="06">工作量过大</el-checkbox>
                <el-checkbox label="07">精力不足/注意力不集中</el-checkbox>
                <el-checkbox label="08">责任心不强</el-checkbox>
                <el-checkbox label="09">人力未达预期配置</el-checkbox>
                <el-checkbox label="10">缺乏完整、准确评估</el-checkbox>
                <el-checkbox label="11">未做双核对</el-checkbox>
                <el-checkbox label="12">未依照标准操作流程</el-checkbox>
                <el-checkbox label="13">缺乏标准操作</el-checkbox>
                <el-checkbox label="14">违反操作规范</el-checkbox>
                <el-checkbox label="15">环境设备不熟悉</el-checkbox>
                <el-checkbox label="16">未向患者/家属宣教</el-checkbox>
                <el-checkbox label="17">宣教方式或技巧不对</el-checkbox>
                <el-checkbox label="18">未落实交接班制度</el-checkbox>
                <el-checkbox label="19">医护团队间沟通不足</el-checkbox>
                <el-checkbox label="20">未注意特殊时段病房巡视</el-checkbox>
                <el-checkbox label="21">未插高危警示标识</el-checkbox>
                <el-checkbox label="22">未进行监督</el-checkbox>
                <el-checkbox label="23">未告知患者完整信息</el-checkbox>
                <el-checkbox label="24">医疗器械操作不当</el-checkbox>
                <el-checkbox label="25">服务态度不好</el-checkbox>
                <el-checkbox label="26">采用不适当的信息</el-checkbox>
                <el-checkbox label="27">有不合格人员执行</el-checkbox>
                <el-checkbox label="28">违反医疗规章制度</el-checkbox>
                <el-checkbox label="29">给药核对不规范</el-checkbox>
                <el-checkbox label="30">安全意识差、惯性思维严重</el-checkbox>
                <el-checkbox label="31">对医嘱核对重要性认识不足</el-checkbox>
                <el-checkbox label="32">未做到医嘱班班核对</el-checkbox>
                <el-checkbox label="33">其他</el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item label="患者">
              <el-checkbox-group v-model="huanzhe" @change="huanzhe1(huanzhe)">
                <el-checkbox label="01">身体虚弱</el-checkbox>
                <el-checkbox label="02">未遵从遗嘱/遵医行为差</el-checkbox>
                <el-checkbox label="03">意识或认知障碍</el-checkbox>
                <el-checkbox label="04">肢体行动障碍</el-checkbox>
                <el-checkbox label="05">躁动</el-checkbox>
                <el-checkbox label="06">步态不稳</el-checkbox>
                <el-checkbox label="07">高危患者执意下床活动</el-checkbox>
                <el-checkbox label="08">患者过度高估自己的活动能力</el-checkbox>
                <el-checkbox label="09">约束不当</el-checkbox>
                <el-checkbox label="10">隐瞒有关病史/用药史</el-checkbox>
                <el-checkbox label="11">提供错误病史/用药史</el-checkbox>
                <el-checkbox label="12">高血压/位体性低血压</el-checkbox>
                <el-checkbox label="13">眩晕感</el-checkbox>
                <el-checkbox label="14">视力障碍</el-checkbox>
                <el-checkbox label="15">记忆力、理解能力差</el-checkbox>
                <el-checkbox label="16">疾病因素</el-checkbox>
                <el-checkbox label="17">使用药物因素</el-checkbox>
                <el-checkbox label="18">患者饮酒</el-checkbox>
                <el-checkbox label="19">患者自理能力差</el-checkbox>
                <el-checkbox label="20">其他</el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item label="家属/陪护">
              <el-checkbox-group v-model="jiashu" @change="jiashu1(jiashu)">
                <el-checkbox label="01">防护意识差，思想不重视</el-checkbox>
                <el-checkbox label="02">对医护人员的安全告知遵从性低</el-checkbox>
                <el-checkbox label="03">陪伴缺失</el-checkbox>
                <el-checkbox label="04">无陪伴时未告知护士</el-checkbox>
                <el-checkbox label="05">陪护之间交接不全面</el-checkbox>
                <el-checkbox label="06">频繁更换，且未交接相关注意事项</el-checkbox>
                <el-checkbox label="07">家属护理不当</el-checkbox>
                <el-checkbox label="08">擅自松解约束带</el-checkbox>
                <el-checkbox label="09">视力或认知障碍</el-checkbox>
                <el-checkbox label="10">知识缺乏</el-checkbox>
                <el-checkbox label="11">家属不重视，保守治疗</el-checkbox>
                <el-checkbox label="12">其他</el-checkbox>
              </el-checkbox-group>
            </el-form-item>
          </el-collapse-item>

          <el-collapse-item name="5">
            <template #title>
              <div class="shaodiedaobname">机</div>
            </template>
            <el-form-item label="器材设备">
              <el-checkbox-group v-model="qicaishebei" @change="qicai1(qicaishebei)">
                <el-checkbox label="01">器械设备故障或工作异常</el-checkbox>
                <el-checkbox label="02">未有异常警示系统</el-checkbox>
                <el-checkbox label="03">异常警示系统问题</el-checkbox>
                <el-checkbox label="04">信息系统问题</el-checkbox>
                <el-checkbox label="05">器械设备安装、放置不当</el-checkbox>
                <el-checkbox label="06">器械设备过度使用</el-checkbox>
                <el-checkbox label="07">辅助功能障碍</el-checkbox>
                <el-checkbox label="08">器械设备质量不合格</el-checkbox>
                <el-checkbox label="09">器械设备管理问题</el-checkbox>
                <el-checkbox label="10">器械设备未做定期检测和维护</el-checkbox>
                <el-checkbox label="11">缺乏适当的工具/设备</el-checkbox>
                <el-checkbox label="12">器械设备设计不合理/不合格</el-checkbox>
                <el-checkbox label="13">缺乏适合的个人安全防护</el-checkbox>
                <el-checkbox label="14">其他</el-checkbox>
              </el-checkbox-group>
            </el-form-item>
          </el-collapse-item>

          <el-collapse-item name="6">
            <template #title>
              <div class="shaodiedaobname">料</div>
            </template>
            <el-form-item label="耗材药品">
              <el-checkbox-group v-model="haocai" @change="haocai1(haocai)">
                <el-checkbox label="01">型号错误</el-checkbox>
                <el-checkbox label="02">保质期已过</el-checkbox>
                <el-checkbox label="03">真伪存疑</el-checkbox>
                <el-checkbox label="04">进院前是否检验</el-checkbox>
                <el-checkbox label="05">使用方法不符合规定</el-checkbox>
                <el-checkbox label="06">使用环境不对</el-checkbox>
                <el-checkbox label="07">使用材料与机器不匹配</el-checkbox>
                <el-checkbox label="08">使用材料与其他材料互相影响</el-checkbox>
                <el-checkbox label="09">药名相似</el-checkbox>
                <el-checkbox label="10">读音相似</el-checkbox>
                <el-checkbox label="11">外观相似</el-checkbox>
                <el-checkbox label="12">库位临近</el-checkbox>
                <el-checkbox label="13">拼音缩写相似</el-checkbox>
                <el-checkbox label="14">打印不清</el-checkbox>
                <el-checkbox label="15">使用特殊药物</el-checkbox>
                <el-checkbox label="16">给药设备、物品不足</el-checkbox>
                <el-checkbox label="17">药品标识不清</el-checkbox>
                <el-checkbox label="18">药品过期、变质或毁损</el-checkbox>
                <el-checkbox label="19">药物有多种剂型</el-checkbox>
                <el-checkbox label="20">用法不清</el-checkbox>
                <el-checkbox label="21">其他</el-checkbox>
              </el-checkbox-group>
            </el-form-item>
          </el-collapse-item>
          <el-collapse-item name="7">
            <template #title>
              <div class="shaodiedaobname">法</div>
            </template>
            <el-form-item label="流程制度">
              <el-checkbox-group v-model="liucheng" @change="liucheng1(liucheng)">
                <el-checkbox label="01">监管不到位</el-checkbox>
                <el-checkbox label="02">无相关管理制度</el-checkbox>
                <el-checkbox label="03">护理宣传不到位</el-checkbox>
                <el-checkbox label="04">核心制度落实不到位</el-checkbox>
                <el-checkbox label="05">流程不合理</el-checkbox>
                <el-checkbox label="06">缺评估流程</el-checkbox>
                <el-checkbox label="07">缺复核流程</el-checkbox>
                <el-checkbox label="08">无标准化操作流程</el-checkbox>
                <el-checkbox label="09">输液处理不规范</el-checkbox>
                <el-checkbox label="10">手术操作不当</el-checkbox>
                <el-checkbox label="11">无菌操作不规范</el-checkbox>
                <el-checkbox label="12">岗位职责设置不合理</el-checkbox>
                <el-checkbox label="13">相关流程制度无培训</el-checkbox>
                <el-checkbox label="14">相关流程制度培训不足</el-checkbox>
                <el-checkbox label="15">相关流程制度无考核</el-checkbox>
                <el-checkbox label="16">其他</el-checkbox>
              </el-checkbox-group>
            </el-form-item>
          </el-collapse-item>
          <el-collapse-item name="8">
            <template #title>
              <div class="shaodiedaobname">环</div>
            </template>
            <el-form-item label="环境">
              <el-checkbox-group v-model="huanjing" @change="huanjing1(huanjing)">
                <el-checkbox label="01">存在安全隐患</el-checkbox>
                <el-checkbox label="02">缺乏环境安全防护</el-checkbox>
                <el-checkbox label="03">未设置警示标识</el-checkbox>
                <el-checkbox label="04">地面湿滑</el-checkbox>
                <el-checkbox label="05">支撑物不牢固</el-checkbox>
                <el-checkbox label="06">照明缺失或不良</el-checkbox>
                <el-checkbox label="07">通道有障碍物</el-checkbox>
                <el-checkbox label="08">空间过窄</el-checkbox>
                <el-checkbox label="09">自然灾害</el-checkbox>
                <el-checkbox label="10">货位相邻</el-checkbox>
                <el-checkbox label="11">找不到人协助</el-checkbox>
                <el-checkbox label="12">其他</el-checkbox>
              </el-checkbox-group>
            </el-form-item>
          </el-collapse-item>
          <!--  预防此类事件再发生的措施和方法-->
          <el-collapse-item name="9">
            <template #title>
              <div class="shaodiedaobname">预防此类事件再发生的措施和方法</div>
            </template>
            <div style="margin-top: 20px">
              <el-form-item label="加强教育培训">
                <el-checkbox-group v-model="peixun" @change="peixun1(peixun)">
                  <el-checkbox label="01">医护人员临床教育培训</el-checkbox>
                  <el-checkbox label="02">提供就诊者及家属适当宣教</el-checkbox>
                  <el-checkbox label="03">改变医护人员工作态度</el-checkbox>
                  <el-checkbox label="04">其他</el-checkbox>
                </el-checkbox-group>
              </el-form-item>
              <el-form-item label="改善医疗护理管理">
                <el-checkbox-group v-model="huli" @change="huli1(huli)">
                  <el-checkbox label="01">制定适宜的安全制度</el-checkbox>
                  <el-checkbox label="02">制定标准的操作规范</el-checkbox>
                  <el-checkbox label="03">临床操作流程改善</el-checkbox>
                  <el-checkbox label="04">HIS系统修订</el-checkbox>
                  <el-checkbox label="05">其他</el-checkbox>
                </el-checkbox-group>
              </el-form-item>
              <el-form-item label="改善行政管理">
                <el-checkbox-group v-model="xingzheng" @change="xingzheng1(xingzheng)">
                  <el-checkbox label="01">完善医院行政制度</el-checkbox>
                  <el-checkbox label="02">完善医院行政流程</el-checkbox>
                  <el-checkbox label="03">建立检测制度</el-checkbox>
                  <el-checkbox label="04">人力配置改善</el-checkbox>
                  <el-checkbox label="05">环境设备改善</el-checkbox>
                  <el-checkbox label="06">其他</el-checkbox>
                </el-checkbox-group>
              </el-form-item>
              <el-form-item label="加强沟通方式">
                <el-checkbox-group v-model="goutong" @change="goutong1(goutong)">
                  <el-checkbox label="01">增加员工之间的沟通</el-checkbox>
                  <el-checkbox label="02">改善行政沟通系统</el-checkbox>
                  <el-checkbox label="03">改善与就诊者沟通模式</el-checkbox>
                  <el-checkbox label="04">其他</el-checkbox>
                </el-checkbox-group>
              </el-form-item>
            </div>
          </el-collapse-item>
        </el-collapse>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <el-button type="primary" @click="submitForm">确 定</el-button>
        <el-button type="primary" @click="cancel">取 消</el-button>
      </div>
    </el-dialog>
  </div>

</template>

<script>
  import {
    addAnalysis
  } from "@/api/module/shao/shijian/analysis";
  import {
    getReport
  } from "@/api/module/shao/shijian/report";

  export default {
    name: "item2",
    dicts: ['he_severity_of_injury', 'he_department_name', 'he_event_severity', 'he_education', 'he_patient_gender', 'he_party_post', 'he_report_event_state', 'he_report_event_type', 'he_patient_age_grades', 'he_event_severity', 'he_review_status', 'he_report_status', 'he_position', 'he_event_classification', 'he_review_event_type', 'he_possibility_of_dispute', 'he_patient_involved', 'he_analyze_reports', 'he_fallback_status', 'he_occurrence_time_period', 'he_event_determinatione', 'he_situation_measures_event', 'he_patient_education_level', 'he_diagnosis_category', 'he_years_of_experience', 'he_severity_of_injury', 'he_reporting_method', 'he_patient_nursing_level', 'he_date_type', 'he_invalidation_status', 'he_patient_ethnic_group', 'he_category', 'he_handling_status'],
    props: ['disabled'],
    data() {
      return {
        //手风琴
        activeNames: ['1','2'],
        yihu: [],
        huanzhe: [],
        jiashu: [],
        qicaishebei: [],
        haocai: [],
        liucheng: [],
        huanjing: [],
        huli: [],
        peixun: [],
        xingzheng: [],
        goutong: [],
        //对象
        form:{},
        analysisform: {
          reportEventId: '',
          // undesc: '患者XXX，因“XXX”原患疾病于XXX时间入院（就诊），临床诊断XXX，从X年X月X日X时（用药起始时间）开始使用XXX药物（溶媒用量+药品用量、用法，按该顺序填写，如未使用溶媒，就不用填写溶媒）。\n' +
          //   '于XXX（第一次发生ADR的时间）时间，在用XXX药（如果多种药物同时使用，必须提供一个药物使用的顺序）XXX分钟/小时后，发生XXX反应，立即采取（干预时间）XXX措施（干预措施，如停止用药，并予以溶媒用量+药品用量、用法，按该顺序填写，如未使用溶媒，就不用填写溶媒），给予XXX（包含剂量）药物治疗，XXX分钟/小时（ADR终结时间）后症状缓解（ADR终结结果）。',
          discussionDepartmentDate: '',
          discussionSite: '',
          discussionPanelist: '',
          discussionInvolvesPatient: '',
          discussionHurtPatient: '',
          discussionPatientKnows: '',
          discussionFamilyKnows: '',
          discussionPotentialDispute: '',
          discussionQualitativeLevels: '',
          discussionMedicalMalpractice: '',
          discussionHandSuggestion: '',
          possibleCausesWorkers: '',
          possibleCausesPatient: '',
          possibleCausesFamily: '',
          possibleCausesEquipment: '',
          possibleCausesConsumableDrug: '',
          possibleCausesProcessSystem: '',
          possibleCausesEnvironment: '',
          measureStrengthenEducation: '',
          measureCareManagement: '',
          measureImproveAdministration: '',
          measureStrengthenCommunication: '',
          disposePhoto: '',
        },
        // 表单校验
        rules: {
          discussionDepartmentDate: [{
            required: true, message: "日期不能为空", trigger: "blur"
          }],
          discussionSite: [{
            required: true, message: "位置不能为空", trigger: "blur"
          }],
        },
        innerVisible: false,
      }
    },
    //页面预加载
    created() {
      getReport(this.$route.query.id).then(response => {
        this.form = response.data;
      });
    },
    methods: {
      yihu1(boxlist) {
        this.analysisform.possibleCausesWorkers = this.popCheckbox(boxlist);
      },
      huanzhe1(boxlist) {
        this.analysisform.possibleCausesPatient = this.popCheckbox(boxlist);
      },
      jiashu1(boxlist) {
        this.analysisform.possibleCausesFamily = this.popCheckbox(boxlist);
      },
      qicai1(boxlist) {
        this.analysisform.possibleCausesEquipment = this.popCheckbox(boxlist);
      },
      haocai1(boxlist) {
        this.analysisform.possibleCausesConsumableDrug = this.popCheckbox(boxlist);
      },
      liucheng1(boxlist) {
        this.analysisform.possibleCausesProcessSystem = this.popCheckbox(boxlist);
      },
      huanjing1(boxlist) {
        this.analysisform.possibleCausesEnvironment = this.popCheckbox(boxlist);
      },
      huli1(boxlist) {
        this.analysisform.measureCareManagement = this.popCheckbox(boxlist);
      },
      peixun1(boxlist) {
        this.analysisform.measureStrengthenEducation = this.popCheckbox(boxlist);
      },
      xingzheng1(boxlist) {
        this.analysisform.measureImproveAdministration = this.popCheckbox(boxlist);
      },
      goutong1(boxlist) {
        this.analysisform.measureStrengthenCommunication = this.popCheckbox(boxlist);
      },

      //这个是由于有的是多选框有的是单选但是我们后台只能接字符串而不是数组所以需要分割下面会调用
      popCheckbox(boxlist) {
        let str = '';
        for (let i = 0; i < boxlist.length; i++) {
          if (i == 0) {
            str = boxlist[i];
          } else {
            str = str + ',' + boxlist[i];
          }
        }
        return str;
      },
      submitForm() {
        this.$refs["analysisform"].validate(valid => {
          //转化时间形式
          if (valid) {
            if (this.analysisform.discussionDepartmentDate !== null) {
              this.analysisform.discussionDepartmentDate = this.analysisform.discussionDepartmentDate.toLocaleString('zh-CN', {timeZone: 'Asia/Shanghai',hour12: false})
              this.analysisform.discussionDepartmentDate= this.analysisform.discussionDepartmentDate.replace(/\//g, '-')
            }
            // analysisform.discussionDepartmentDate
            this.analysisform.note1 = '分析报告'
            this.analysisform.reportEventId = this.$route.query.id;
            addAnalysis(this.analysisform).then(response => {
              this.$modal.msgSuccess("填写分析报告成功");
              this.innerVisible = false;
              this.$emit("comfirm");
            });
          }
        });
      },
      cancel() {
        this.innerVisible = false
      },
      handleAdd() {
        this.innerVisible = true
      }
    }

  }
</script>

<style scoped>
  .shaodiedaobname {
    font-family: 微软雅黑;
    font-weight: bold;
    font-size: 20px;
    color: black;
  }

</style>
